package org.wk.account.domain.yuan;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import java.math.BigDecimal;


/**
 * @ClassName	: SubAccountYuanFromZaiBill
 * @Package		：org.wk.digiccy.domain.yuan
 * @Author df.w 
 * @Create Time	：2018年5月10日 上午11:24:18
 * @Description	: 鲸源 来至于鲸仔
 */ 
@Entity(name="org.wk.account.domain.yuan.SubAccountYuanFromZaiBill")
@Table(name="sub_account_yuan_from_zai_bill")
public class SubAccountYuanFromZaiBill extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;
	@Column
	private String userId;
	@Column
	private BigDecimal amount;
	
	/**
	 * @return the id
	 */
	
	public String getId() {
		return id;
	}

	
	/**
	 * @param id 要设置的 id
	 */
	
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the userId
	 */
	
	public String getUserId() {
		return userId;
	}
	
	/**
	 * @param userId 要设置的 userId
	 */
	
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
}
